package
{
	import flash.display.Sprite;
	import flash.display.StageScaleMode;
	import flash.events.MouseEvent;
	
	import remote.collections.ArrayCollection;
	import remote.containers.Container;
	import remote.controls.Button;
	import remote.controls.CheckBox;
	import remote.controls.HSlider;
	import remote.controls.Image;
	import remote.controls.List;
	import remote.controls.NumericStepper;
	import remote.controls.Scroller;
	import remote.layouts.PaddingLayout;
	import remote.layouts.TileLayout;
	import remote.skins.SolidRectangleSkin;
	
	[swf(backgroundColor="0x668855", width="1000")]
	public class Main extends Sprite
	{
		[Embed(source="1.jpg")]
		private var _bg:Class;
		public function Main()
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			var scroller:Scroller = new Scroller();
			scroller.width = 300;
			scroller.height = 300;
			addChild(scroller);
			
			var container:Container = new Container();
			scroller.content = container;
			container.layout = new TileLayout();
			
			for(var i:int = 0; i < 100; i++)
			{
				var btn:NumericStepper = new NumericStepper();
				//btn.toggle = true;
				//btn.label = i.toString();
				//btn.skin = new TempSkin();
				container.addChild(btn);
			}
			
			var list:List = new List();
			list.width = 100;
			list.height = 300;
			var data:ArrayCollection = new ArrayCollection();
			for(var j:int = 0;j < 30; j++)
			{
				data.addItem(j);
			}
			list.dataProvider = data;
			addChild(list);
			
			var s:Image = new Image();
			s.source = "1.jpg";
			addChild(s);
		}
		
		
	}
}